<template>
<div>
    子组件

</div>
</template>

<script>
export default {
    props: {
        obj: Object
    },
    data() {
        return {
            childObj: this.obj
        }
    },
    created() {
        // this.childObj.c = 3,
        // console.log(this.childObj.c)
        this.obj.c = 3
        console.log(this.obj.c + 'obj')
    },
    mounted() {
        this.obj.c = 3
        console.log(this.obj.c + 'objs')
    },
}
</script>

<style>

</style>
